home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Camelot
/
Camelot 105 (1991-02)(Swedish User Group of Amiga)(SE)(PD)[WB].zip
/
Camelot 105 (1991-02)(Swedish User Group of Amiga)(SE)(PD)[WB].adf
/
AmigaUUCP
/
dnews
/
filereq.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-05-27
|
551b
|
31 lines
/*
* FILEREQ.C
*/
#include "defs.h"
Prototype char *GetFileName(int);
char FileName[4][128];
char DirName[4][128];
char *ReqType[] = { "Write To File", "" };
char CombName[128];
char *
GetFileName(which)
int which;
{
if (arpreq(ReqType[which], FileName[which], DirName[which], NULL)) {
short len = strlen(DirName[which]);
strcpy(CombName, DirName[which]);
if (len && CombName[len-1] != '/' && CombName[len-1] != ':')
strcat(CombName+len, "/");
strcat(CombName+len, FileName[which]);
return(CombName);
}
return(NULL);
}